# -*- coding: utf-8 -*-
# @Time    : 2020/12/6 下午9:59
# @Author  : lilong

"""
存储：接口、父类
"""


class IHightPerson:
    """身高信息接口类"""

    def getName(self):
        """获取姓名"""
        raise NotImplementedError

    def getHeight(self):
        """获取身高"""
        raise NotImplementedError


class ShortPerson:
    """个矮的人：要适配的对象
    理解：有自己特有的属性和方法
    """

    def __init__(self, name, realHeight, shoesHeight):
        self.__name = name
        self.__realHeight = realHeight
        self.__shoesHeight = shoesHeight

    def getName(self):
        return self.__name

    # 要被适配器封装成标准接口类getHeight函数
    def getRealHeight(self, ):
        return self.__realHeight

    def getShoesHeight(self):
        return self.__shoesHeight

